package vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JPanel;

import javax.swing.WindowConstants;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VentanaPrincipal extends javax.swing.JFrame {

	private JPanel panContenedor;
	private JButton btnConsultar;
	private JButton btnOperaciones;

	/**
	* Auto-generated main method to display this JFrame
	*/
		
	public VentanaPrincipal() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			{
				panContenedor = new JPanel();
				getContentPane().add(panContenedor, BorderLayout.CENTER);
				panContenedor.setLayout(null);
				panContenedor.setPreferredSize(new java.awt.Dimension(351, 162));
				{
					btnOperaciones = new JButton();
					panContenedor.add(btnOperaciones);
					btnOperaciones.setText("Agregar y Retirar Vehiculos");
					btnOperaciones.setBounds(77, 58, 233, 22);
				}
				{
					btnConsultar = new JButton();
					panContenedor.add(btnConsultar);
					btnConsultar.setText("Consultar Vehiculos");
					btnConsultar.setBounds(77, 110, 233, 22);
				}
			}
			pack();
			this.setSize(413, 222);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

	
	public void agregarListener(ActionListener accion){
		btnOperaciones.addActionListener(accion);
		btnConsultar.addActionListener(accion);
	}
	
	
}
